<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>展示用户列表</title>
</head>
<body>
    <div style="text-align: center;">
        <h3>用户列表页面</h3>
        <table border="1" cellspacing="0px" align="center" width="80%">
            <tr>
                <td>序号</td>
                <td>名字</td>
                <td>生日</td>
                <td>性别</td>
                <td>地址</td>
            </tr>
            <%--遍历数据--%>
            <c:forEach items="${users}" var="user" varStatus="vs">
                <tr>
                    <td>${vs.index+1}</td>
                    <td>${user.username}</td>
                    <td>${user.birthday}</td>
                    <td>${user.sex}</td>
                    <td>${user.address}</td>
                </tr>

            </c:forEach>

        </table>
    </div>
</body>
</html>
